定义显示在次要X轴上的项目
date | Date | 需要格式化的日期 |
Available only in PRO Edition
scheduler.templates.timeline_second_scale_date = function(date){
var timeline = scheduler.matrix.timeline;
var func = scheduler.date.date_to_str(
(timeline.second_scale && timeline.second_scale.x_date)?
timeline.second_scale.x_date:scheduler.config.hour_date
);
return func(date);
};
该template仅在启用timeline插件时有效。